<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>主</title>
<link rel="stylesheet" type="text/css" href="__CSS__main.css"/>
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<import type='js' file="js.main" />
<style type="text/css">
b.w{padding: 4px 8px; background-color:#28b779; color:#fff; border-radius:3px; font-weight:normal;}
b.w1{background-color:#b6b3b3;}
b.w2{background-color:#ff5454;}
b.w3{background-color:#ff5454;}
</style>
</head>

<body>  
<div class="main-frame">
	<div class="position">内容 > 类型列表</div>
	<div class="table-list">
	 <table width="100%" border="1" cellspacing="0" cellpadding="0" class="indextable">
		    <tr class="th-bg">
		      <th width="5%">ID</th>
			  <th width="16%">类型名称</th>
		     <!--  <th width="16%">节日名称</th> -->
		      <th width="10%">操作</th>
	        </tr>
	        <?php $u=1 ?>
	        <volist name='typelist' id='data' empty="暂无数据">
			    <tr class="tr-line">
			      <td><?php echo $u++ ?></td>
				  <td>{$data.netname}</td>
			      <!-- <td style="font-size:12px;">{$data.fstvnm}</td> -->
			      <td>
			      	<a href="{:U('Index/editType',array('netid'=>$data['netid']))}">编辑</a>
			      	<a href="{:U('Index/deleType',array('netid'=>$data['netid']))}" class="del">删除</a>
			      </td>
		        </tr>
	        </volist>
      </table>
    </div>
    <if condition="$page neq 1"><div class="page">{$page}</div></if>
</div>
<style type="text/css">
a.batchma{padding-left:12px; color:#000; font-weight:bold;}
</style>
<script type="text/javascript">
	$(function(){
		$(".del").each(function(index, element) {
			var t = $(this);
			t.click(function(){
				var r=confirm("想好！确定要这么操作吗？");
				if (r==true){
					var refurl = $(this).attr('refurl');
					location.href = refurl;
				}else{
					return false;
				}
			})
		});
	})
</script>
</body>
</html>
